package com.es.entity;

import com.es.dto.RoleDTO;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 文雪峰
 * @date 2019/12/20 15:21
 * @description 简单描述
 **/
@Data
public class User {
    private String id;
    private String name;
    private Integer age;
    private Integer sex;
    private BigDecimal money;
    private LocalDateTime time;
    /**
     * 经纬度 维度在前 经度 在后 的数组 [ -71.34, 41.12 ]
     */
    private String location;
    private List<RoleDTO> roleList;
    public User(String id, String name, Integer age, Integer sex, BigDecimal money, LocalDateTime time, String location) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.money = money;
        this.time = time;
        this.location = location;
    }
    public User() {
    }
}
